<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>天众云仓</title>
<script type="text/javascript" src="__PUBLIC__/js/jquery-2.2.0.min.js"></script>
<script type="text/javascript" src="__PUBLIC__/js/layer/layer.js"></script>
<link href="__PUBLIC__/css/member.css" rel="stylesheet" />
<style>
	.bz{
		font-size:12px !important;
		color:#FF0202 !important;
		text-align:left !important;
		width:140px !important;
		display:none;
	}
</style>
</head>

<body>
<!--header-->
<div class="warp_top">
  <div class="top">
    <div class="top_logo"><img src="__PUBLIC__/member_img/logo.png" /></div>
    <div class="top_fonts">
      <h4>天众云仓-企业端管理系统</h4>
      <p>Teams YunCang&nbsp;&nbsp;&nbsp;-&nbsp;&nbsp;&nbsp;company management system</p>
    </div>
    <div class="clear"></div>
  </div>
</div>
<!--header-->

<!--main-->
<div class="main_warp">
<div class="main_center">
  <div class="main_cenl">
    <p>已经注册账号？立即登录</p>
    <a href="__MODULE__/Reg/login"><button>登录</button></a>
  </div>
  <div class="main_cenr">
    <h4>注册新会员</h4>
    <div class="main_reg">
      <div class="main_regin">
        <span>企业名称：</span>
        <input  onFocus="this.value = '';" onBlur="if (this.value == '') {this.value = '';}"  value=""  type="text" name="company" class=""><span class="bz">*请填写企业全称</span>
        <div class="clear"></div>
      </div>
      <div class="main_regin">
        <span>手机号码：</span>
        <input  onFocus="this.value = '';" name="username"  onBlur="if (this.value == '') {this.value = '';}"  value=""  type="text" class=""><span class="bz">*作为登录的唯一标识</span>
        <div class="clear"></div>
      </div>
      <div class="main_regin">
        <span>密码：</span>
        <input  onFocus="this.value = '';" onBlur="if (this.value == '') {this.value = '';}"  value=""  type="password" name="pwd" class=""><span class="bz">*请填写密码</span>
        <div class="clear"></div>
      </div>
      <div class="main_regin">
        <span>重复密码：</span>
        <input  onFocus="this.value = '';" onBlur="if (this.value == '') {this.value = '';}"  value=""  type="password" name="pwd2" class=""><span class="bz">*请再次填写密码</span>
        <div class="clear"></div>
      </div>
      <div class="main_regin">
        <span>E-mail：</span>
        <input  onFocus="this.value = '';" onBlur="if (this.value == '') {this.value = '';}"  value=""  type="text" name="email" class=""><span class="bz">*此邮箱可用于密码找回</span>
        <div class="clear"></div>
      </div>
      <div class="main_regin">
        <span>姓名：</span>
        <input  onFocus="this.value = '';" onBlur="if (this.value == '') {this.value = '';}"  value=""  type="text" name="name"  class=""><span class="bz">*请填写您的姓名</span>
        <div class="clear"></div>
      </div>
	  <div class="main_regin wc">
        <span>仓库类型：</span>
        <select class="easyui-combobox warehouse_cate" name="warehouse_cate" style="width:282px;height:38px;"><span class="bz">*请选择仓库类型</span>
				<option value="0">未选择</option>
				<option value="1">一般仓</option>
				<option value="2">跨境仓</option>
				<option value="3">海外仓</option>
				<option value="4">直邮仓</option>
		</select>
        <div class="clear"></div>
      </div>
	  
      <button class="rebutton regbutton">注册</button>
    </div>
  </div>
  <div class="clear"></div>
</div>
</div>


<!--main-->
<!--bottom-->

<div class="bottom_warp">
  <div class="bottom_main">
    <img src="__PUBLIC__/member_img/login04.png" /><span>新手指引</span>
  </div>
  <div class="bottom_main bottom_m2">
    <img src="__PUBLIC__/member_img/login05.png" /><span>无法登录？请点此查看帮助</span>
  </div>
  <div class="bottom_main bottom_m3">
    <img src="__PUBLIC__/member_img/login06.png" /><span>客服中心</span>
  </div>
  <div class="clear"></div>
  
  <p class="fcopy">▪&nbsp;&nbsp;copyright © 天众科技&nbsp;&nbsp;▪</p>
  <div class="clear"></div>
</div>
<!--bottom-->

<script>
	$('input').focus(function(){
		$(this).parents().find('.bz').hide();
		$(this).parent().find('.bz').eq(0).show(100);
	})
    var is_true=1;
    $(".regbutton").click(function (){
        if(is_true==0){
            return false;
        }
        is_true=0;
        $.post('__MODULE__/Reg/registerD',{
            company:$("input[name=company]").val(),
            username:$("input[name=username]").val(),
            pwd:$("input[name=pwd]").val(),
            pwd2:$("input[name=pwd2]").val(),
			warehouse_cate:$(".warehouse_cate").val(),
            name:$("input[name=name]").val(),
            email:$("input[name=email]").val(),
        },function(msg){
            layer.msg(msg.data);
            if(msg.flag==1){
                setTimeout(function (){
                    location.href='__APP__/Company/Index/index';
                },800);
            }else{
                is_true=1;
            }
        },'json');
    });
</script>
</body>
</html>
